﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BrokerBase.Lib.Core
{
    /// <summary>
    /// 树形结构
    /// </summary>
    public interface INode<T>
    {
        /// <summary>
        /// 父节点
        /// </summary>
        /// <returns></returns>
        T Parent { set; get; }
        /// <summary>
        /// 子节点
        /// </summary>
        /// <returns></returns>
        IList<T> Children { get; set; }

        bool Leaf { get; set; }

        int Level { get; set; }
    }
}
